package cn.net.sinodata.threadpool.base;

import java.io.Serializable;

/**
 * Description: 线程池状态
 *
 * @author: yinliangyun
 * @date: 2021-5-19
 */
public class ThreadPoolStatus implements Serializable {

	private static final long serialVersionUID = 1L;

	String queueCode;
	int state;
	int processingTaskCount;
	int scheduledTaskCount;

	public ThreadPoolStatus(String queueCode,int state, int processingTaskCount, int scheduledTaskCount) {
		this.queueCode = queueCode;
		this.state = state;
		this.processingTaskCount = processingTaskCount;
		this.scheduledTaskCount = scheduledTaskCount;
	}

	public String getQueueCode() {
		return queueCode;
	}

	public void setQueueCode(String queueCode) {
		this.queueCode = queueCode;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public int getProcessingTaskCount() {
		return processingTaskCount;
	}

	public void setProcessingTaskCount(int processingTaskCount) {
		this.processingTaskCount = processingTaskCount;
	}

	public int getScheduledTaskCount() {
		return scheduledTaskCount;
	}

	public void setScheduledTaskCount(int scheduledTaskCount) {
		this.scheduledTaskCount = scheduledTaskCount;
	}

	@Override
	public String toString() {
		return "ThreadPoolStatus [queueCode=" + queueCode + ", state=" + state + ", processingTaskCount="
				+ processingTaskCount + ", scheduledTaskCount=" + scheduledTaskCount + "]";
	}

}
